//
//  LCDeviceDetailInfoVC.m
//  LongChain
//
//  Created by FengZi on 2018/4/3.
//  Copyright © 2018年 FengZi. All rights reserved.
//

#import "LCDeviceDetailInfoVC.h"
#import "LCDeviceDetailInfoCell.h"
@interface LCDeviceDetailInfoVC ()<UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout>


@property (nonatomic, strong) NSArray *deviceInfoDesArr;
@end

@implementation LCDeviceDetailInfoVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    NSLog(@"%@",self.deviceModel);
}

#pragma mark - -
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {

    LCDeviceDetailInfoCell *deviceDetailCell = [collectionView dequeueReusableCellWithReuseIdentifier:@"deviceInfoCell" forIndexPath:indexPath];
    [deviceDetailCell lc_updateDeviceDetailInfoWithDes:self.deviceModel index:indexPath];
    return deviceDetailCell;
}

- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath {
    return CGSizeMake(SWidth, 50);
}
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView {
    return 2;
}

- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
    
    NSInteger itemCount = (section == 0) ? 2 : 1;
    return itemCount;
}

- (IBAction)backAction:(id)sender {
    
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
